<?php include dirname(__FILE__).'/common/header.php'; ?>

<?php include dirname(__FILE__).'/common/menu.php'; ?>

var attr = {};
attr.ctrlName = '<?php echo $ctrlName; ?>';
attr.game_gift = <?php echo $game_gift ?>;
/*
| -------------------------------------------------------------------
|  List Grid
| -------------------------------------------------------------------
*/
list.grid = new ZM.GridPanel({
    url: list.baseUrl + attr.ctrlName+'/getLotteryHistoryList',
    columns:[
        {header:'顾客ID',dataIndex:'customer_id',filter:{}},
        {header:'bluemember用户ID',dataIndex:'bluemember_user_id',width:200,filter:{}},
        {header:'bluemembers手机号',dataIndex:'bluemember_phone',width:200,filter:{}},
        {header:'奖品',dataIndex:'gift_type',width:150,renderer:function(val) {3
            var str = ZM.id2name(val,attr.game_gift);
            return str ? str : '未中奖';
        },filter:{
            xtype:'combofield',
            options:[['','全部'],['0','无'],['-1','已中奖']].concat(attr.game_gift)
        }},
        {header:'抽奖时间',dataIndex:'lottery_time_time_create',width:140}
    ]
});
/*
| -------------------------------------------------------------------
|  List Grid Action
| -------------------------------------------------------------------
*/


<?php include dirname(__FILE__).'/common/layout.php'; ?>
list.grid.store.load();
<?php include dirname(__FILE__).'/common/footer.php'; ?>